你可以通过创建 batch_withdrawal
对象对多个提现申请状态的 withdrawal
对象做批量确认或取消。在批量动作完成后,所以包含的 withdrawal
对象的状态都会进行相应的改变。
请求参数 | 描述 |
---|---|
APP_ID required string | 对应 app 对象的 id ,该参数仅需要填写在请求地址内,查看 如何获取App ID。 |
withdrawals required array | withdrawal 对象的 id 列表,不能超过 200 个元素。 |
metadata optional hash | 详见 元数据。 |
status optional string | 提现操作。提现确认:pending ,提现取消:canceled ,默认值:pending 。 |
返回
返回一个 batch_withdrawal
对象,或者返回一个错误,详见 错误。
POST https://api.pingxx.com/v1/apps/{APP_ID}/batch_withdrawals
待补充
待补充
待补充
待补充
待补充
待补充
待补充
curl https://api.pingxx.com/v1/apps/app_1Gqj58ynP0mHeX1q/batch_withdrawals \ -H "Pingplusplus-Signature: {SIGNATURE}" \ -H "Pingplusplus-Request-Timestamp: 1478833871" \ -u sk_test_ibbTe5jLGCi5rzfH4OqPW9KC: \ -d '{ "withdrawals": [ "1701611150302360654", "1701611151015078981" ] }'
待补充
待补充
待补充
待补充
待补充
待补充
待补充
{ "id": "1901611151015122025", "object": "batch_withdrawal", "app": "app_1Gqj58ynP0mHeX1q", "created": 1478833871, "livemode": false, "amount": 80000, "amount_succeeded": 0, "amount_failed": 0, "amount_canceled": 0, "count_succeeded": 0, "count_failed": 0, "count_canceled": 0, "fee": 0, "metadata": {}, "status": "pending", "user_fee": 0, "withdrawals": { "object": "list", "url": null, "has_more": false, "data": [ { "id": "1701611150302360654", "object": "withdrawal", "app": "app_1Gqj58ynP0mHeX1q", "amount": 20000, "asset_transaction": "", "balance_transaction": "", "channel": "alipay", "created": 1472648887, "description": "test232description", "extra": { "account": "username@gmail.com", "name": "姓名" }, "fee": 200, "livemode": false, "metadata":{}, "order_no": "20160829133002", "source": null, "status": "pending", "time_canceled": null, "time_succeeded": null, "user": "user_001", "user_fee": 50 }, {...}, {...} ] } }